package com.cqc.jdk8.Jutil.function;

public class VariableTest {

    public static void main(String[] args) {
        final int a=1;
        Converter<Integer,String> converter=(from)-> String.valueOf(from +a);
        String convert = converter.convert(5);
        System.out.println(convert);
        //不可以修改a的值，final可以省略
        //a=5;
        System.out.println(a);
    }
}
